package com.easylinkin.linkappapi.quality.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.easylinkin.linkappapi.common.model.RequestModel;
import com.easylinkin.linkappapi.quality.dto.ProblemTypeDTO;
import com.easylinkin.linkappapi.quality.entity.ProblemType;
import java.util.List;

/**
 * <p>
 * 闸机表 服务类
 * </p>
 *
 * @author TongJie
 * @since 2022-04-13
 */
public interface ProblemTypeService extends IService<ProblemType> {

  IPage<ProblemType> queryListByPage(RequestModel<ProblemType> requestModel);

  /**
   * 增加
   * @param problemType
   */
  void insert(ProblemType problemType);

  /**
   * 根据id编辑
   * @param problemType
   */
  void updateOne(ProblemType problemType);

  /**
   * @Description: 根据条件，查询
   * @author kan yuanfeng
   * @date 2020/11/04 11:42
   */
  List<ProblemTypeDTO> queryList(ProblemType problemType);

  /**
   * @Description: 查询问题树(下拉选择使用)
   * @author kan yuanfeng
   * @date 2020/11/04 11:42
   */
  List<ProblemTypeDTO> queryTree();

  /**
   * 为企业端新增
   * @param problemType
   */
  void addFromEnterprise(ProblemType problemType);

  void updateFromEnterprise(ProblemType problemType);

  void deleteFromEnterprise(ProblemType problemType);

  List<ProblemTypeDTO> listFromEnterprise(ProblemType problemType);
}
